package gggameserver.games;

public class GameResult {

	private int winner;
	private String log;
	private byte[] logdata;

	public GameResult(int winner, String log) {
		this.winner = winner;
		this.log = log;
		this.logdata = log.getBytes();
	}

	public GameResult(int winner, byte[] logdata) {
		this.winner = winner;
		this.log = new String(logdata);
		this.logdata = logdata;
	}

	// 1, 2...
	public int getWinner() {
		return this.winner;
	}

	public String getGameLogText() {
		return log;
	}

	public byte[] getGameLogData() {
		return logdata;
	}

}
